<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册页面</title>
    <style>
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group input {
            width: 100%;
            padding: 0.75rem;
            font-size: 1rem;
            border: 1px solid #ccc;
            border-radius: 0.25rem;
        }

        .form-group button {
            width: 100%;
            padding: 0.75rem;
            font-size: 1rem;
            background-color: #258eb8;
            color: #fff;
            border: none;
            border-radius: 0.25rem;
            cursor: pointer;
        }

        .form-group button:hover {
            background-color: #1f67b4;
        }
    </style>
    <script>
        function showSuccessMessage() {
            alert("注册成功");
        }
        function register() {
            // 处理登录逻辑
            // 可以使用 JavaScript 进行验证、跳转等操作
        }
    </script>
</head>

<body>
<h1>用户注册</h1>
<form action="register.html" method="post">
    <div class="form-group">
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username">
    </div>

    <div class="form-group">
        <label for="password">密码:</label>
        <input type="password" id="password" name="password">
    </div>

    <div class="form-group">
        <label for="email">邮箱:</label>
        <input type="email" id="email" name="email">
    </div>

    <div class="form-group">
        <button onclick="showSuccessMessage()">
            <a href="login.html">注册</a>
        </button>
    </div>
</form>
</body>
</html>